﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;

namespace ProjectSem40701.Admin
{
    public partial class UserRoundReport : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //do nothing
        }

        protected void cbbExam_SelectedIndexChanged(object sender, EventArgs e)
        {
            this.cbbRound.DataBind();
        }

        protected void cbbExam_DataBound(object sender, EventArgs e)
        {
            this.cbbRound.DataBind();
        }

        protected void btnOK_Click(object sender, EventArgs e)
        {
            UserRoundR cr = new UserRoundR();
            AdminXSD.UserRoundTableAdapters.UserRoundSelectTableAdapter
                dp = new AdminXSD.UserRoundTableAdapters.UserRoundSelectTableAdapter();
            DataTable dttbl = (DataTable)dp.UserRoundSelectByID(Convert.ToInt32(this.cbbRound.SelectedValue));
            cr.SetDataSource(dttbl);
            this.CrystalReportViewer1.ReportSource = cr;
        }
    }
}
